﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace WindowsFormsApplication3.权限管理
{
    public partial class delStudents : Form
    {
        public int del_index;
        public string del_info;
        public delStudents()
        {
            InitializeComponent();
        }

        private void delStudents_OK_Click(object sender, EventArgs e)
        {
            try
            {
                权限管理.permissionManaging.mySql.excute_sql("delete from studentstable where studentsID = '" 
                    + del_info + "' ");
                权限管理.permissionManaging.mySql.excute_sql("delete from sqlTableName_and_IDtable where userID = '"
                   + del_info + "' ");
                this.Dispose();
            }
            catch
            { 
                
            }
        }

        private void delStudents_cancel_Click(object sender, EventArgs e)
        {
            this.Dispose();
        }
    }
}
